package b4.widget.user
{
	import b4.net.*;	
	import b4.model.player.*;
	import b4.widget.basic.BasicWidget;

	import flash.filters.*;
	import flash.text.*;
	
	public class LevelIcon extends BasicWidget
	{
		public function LevelIcon()
		{
			super();
			var me:Me = PlayerManager.getInstance().me;
			//背景
			var LevelBgr:Class = ResourceManager.getInstance().getClassByName("LevelBgr");
			addChild(new LevelBgr());
			//等级
			var levelText:TextField = new TextField();
        	levelText.autoSize = TextFieldAutoSize.CENTER;
			levelText.defaultTextFormat = new TextFormat("微软雅黑", 14, 0xFFFFFF);
			levelText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
			levelText.selectable = false;
			levelText.x = 15;
			levelText.y = 5;
			levelText.text = me.level.toString();
			addChild(levelText);
		}
		
	}
}